package com.zhb.designmode.creationmode.builder.simple;

public class Client {
    /**
     * 相比于传统建造者模式，省略了director角色，将该角色交给客户端
     * @param args
     */
    public static void main(String[] args) {
        Phone.Builder builder = new Phone.Builder("麒麟9000", "京东方");
        builder.setBattery("索尼").setCamera(3);
        Phone phone = builder.build();
        System.out.println(phone);
    }
}
